﻿using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 基础单点移动
/// </summary>
public abstract class IMoveAction : IAction
{
    protected bool finished = false;

    public IMoveAction(OwnerObj ownerObj) : base(ownerObj)
    {

    }

    /// <summary>
    /// 设置移动路径
    /// </summary>
    /// <param name="path"></param>
    public abstract void SetPath(List<Vector3> path);

    public override void Interrupt()
    {
        finished = true;
    }

    public override bool IsFinished()
    {
        return finished;
    }

    public override void Load()
    {
        finished = false;
    }
}
